package first.group.ssh.packet;

import first.group.ssh.SSHConsts;
import java.nio.ByteBuffer;

public class DiffieHellmanGroupExchangeRequestPacket extends Packet {
    
    public final int min;
    public final int n;
    public final int max;

    public DiffieHellmanGroupExchangeRequestPacket(int min, int n, int max) {
        super(SSHConsts.SSH_MSG_KEX_DH_GEX_REQUEST);
        this.min = min;
        this.n = n;
        this.max = max;
    }

    @Override
    public void write(ByteBuffer buffer) {
        buffer.putInt(min);
        buffer.putInt(n);
        buffer.putInt(max);
    }

}
